<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends CI_Controller {
    public function __construct(){
        parent::__construct();

    }

	public function blog()
	{
    $data['AllBlog'] = $this->blogmodel->GetAllDataBlog();
    $data['NumBlog'] = $this->blogmodel->GetNumBLog();
    $data['icheck'] = 'Blog';
		$this->load->view('home/header',$data);
		$this->load->view('home/blog',$data);
		$this->load->view('home/footer');
	}
  public function aboutme()
  {
    $data['icheck'] = 'About me';
    $this->load->view('home/header',$data);
    $this->load->view('home/aboutme');
    $this->load->view('home/footer');
  }

   public function detail_blog()
  {
    $data['icheck'] = 'Detail blog';
    $this->load->view('home/header',$data);
    $this->load->view('home/detail_blog');
    $this->load->view('home/footer');
  }
   
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */